import weekly from "../model/weekly.js"
import plugin from "../../../lib/plugins/plugin.js"
export class Role extends plugin {
  constructor() {
    super({
      name: "崩坏3个人信息",
      dsc: "崩坏3个人信息",
      event: "message",
      priority: 100,
      rule: [{ reg: "^#*崩三?(周报|周战绩)$", fnc: "weeklyReport" }],
    })
  }

  async weeklyReport() {
    //await this.reply("功能尚未完成")
    //logger.error("功能尚未完成")
    let data = await new weekly().getData(this.e)
    console.log(data)
    this.renderImg("BH3-Plugin", `html/weekly/weekly`, data)
    //await this.reply(img)
  }
}
